package com.share.tool.mock.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 触发原始数据表
 * </p>
 *
 * @author author
 * @since 2023-11-24
 */
@Data
@Accessors(chain = true)
@TableName("trig_source_data")
public class SourceData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 事件实例编号
     */
    @TableField(value = "batch_no")
    private Long batchNo;

    @TableField(value = "conf_Id")
    private Long confId;

    /**
     * 输入参数
     */
    private String request;
    /**
     * 输出参数
     */
    private String response;
    /**
     * 执行状态
     */

    private String status;

    @TableField(value = "exe_status")
    private String exeStatus;


    @TableField(value = "err_msg")
    private String errMsg;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;


    /**
     * 页面显示用到的
     */
    @TableField(exist = false)
    private String eventName;
    @TableField(exist = false)
    private String stepName;
    @TableField(exist = false)
    private Integer stepSort;

}
